import ajax from '@/utils/request'



export const reqAddShopCart =(skuId,skuNum)=>ajax({url:`/cart/addToCart/${ skuId }/${ skuNum }`,method:'post'})



// 获取订单
export const reqMyOrderList=(page,limit)=>ajax({url:`/order/auth/${page}/${limit}`,method:'get'})

// 提交订单
export const reqSubmitOrder=(tradeNo,orderInfo)=>ajax({url:`/order/auth/submitOrder?tradeNo=${tradeNo}`,method:'post',data:orderInfo})

export const reqPayInfo=(orderId)=>ajax({url:`/payment/weixin/createNative/${orderId}`,method:'get'})